#region Math.NET Iridium (LGPL) by Vermorel
// Math.NET Iridium, part of the Math.NET Project
// http://mathnet.opensourcedotnet.info
//
// Copyright (c) 2004-2008, Joannes Vermorel, http://www.vermorel.com
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published 
// by the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public 
// License along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#endregion

using System;

namespace MathNet.Numerics
{
    /// <summary>
    /// The interface <c>IRealFunction</c> defines an interface
    /// of real valued function with one real argument.
    /// </summary>
    /// <remarks>
    /// This interface will typically be implemented for
    /// distributions. See <see cref="MathNet.Numerics.Distributions"/>.
    /// </remarks>
    public interface IRealFunction
    {
        /// <summary>Gets the function value associated the provided
        /// <c>input</c> value.</summary>
        /// <remarks>The semantic associated to this interface is
        /// <i>deterministic function</i> (the same input should
        /// lead to the same returned value).</remarks>
        double ValueOf(double input);
    }
}
